export type OptionType = {
  label: string;
  value: string;
};

export type QuestionRadioPropsType = {
  title?: string;
  options?: OptionType[];
  value?: string;
  prompt?: string | string[];
  isVertical?: boolean;
  isRequired?: boolean;
  onChange?: (newProps: QuestionRadioPropsType) => void;
  disabled?: boolean;
};

export const QuestionRadioDefaultProps: QuestionRadioPropsType = {
  title: "默认单选框标题",
  options: [
    {
      label: "默认选项1",
      value: "item1",
    },
    {
      label: "默认选项2",
      value: "item2",
    },
  ],
  value: "",
  prompt: "",
  isVertical: false,
  isRequired: false,
};

export type QuestionRadioStatPropsType = {
  stat: Array<{ name: string; count: number }>;
};
